<template>
	<view class="active">
		<view class="conteng">
			<block v-for="(item, index) in localdata" :key="index">
				<view class="conteng-article newing" @click="localCont(item.id)">
					<view class="conteng-img">
						<block v-for="(itemimg, index) in item.datainfo.staticimg" :key="index" v-if="index == 0"><image :src="itemimg" mode="aspectFill"></image></block>
					</view>
					<!-- 文字介绍 -->
					<view class="active-introduce">
						<view class="active-name">{{ item.datainfo.titledata }}</view>
						<view class="active-title">{{ item.datainfo.tipsdata }}</view>
					</view>
					<view class="purchase userinfo">
						<image :src="item.datainfo.avatarUrl" mode="widthFix"></image>
						<text class="active-purchase">{{ item.datainfo.nickName }}</text>
					</view>
				</view>
			</block>
		</view>
	</view>
</template>

<script>
export default {
	name: 'content',
	data() {
		return {
			localdata: [
				{
					id: 1,
					datainfo: {
						avatarUrl: 'cloud://start-diaqz.7374-start-diaqz-1302556876/lists/a3.jpg',
						titledata: '一笑而过',
						tipsdata: '一笑而过滴滴滴滴',
						staticimg: ['cloud://start-diaqz.7374-start-diaqz-1302556876/lists/a3.jpg'],
						nickName: '一笑而过'
					}
				},{
					id: 1,
					datainfo: {
						avatarUrl: 'cloud://start-diaqz.7374-start-diaqz-1302556876/lists/a3.jpg',
						titledata: '一笑而过',
						tipsdata: '一笑而过滴滴滴滴',
						staticimg: ['cloud://start-diaqz.7374-start-diaqz-1302556876/lists/a3.jpg'],
						nickName: '一笑而过'
					}
				},{
					id: 1,
					datainfo: {
						avatarUrl: 'cloud://start-diaqz.7374-start-diaqz-1302556876/lists/a3.jpg',
						titledata: '一笑而过',
						tipsdata: '一笑而过滴滴滴滴',
						staticimg: ['cloud://start-diaqz.7374-start-diaqz-1302556876/lists/a3.jpg'],
						nickName: '一笑而过'
					}
				}
			]
		};
	}
};
</script>

<style>
@import url('../../../common/uni.css');
/* 用户头像 */
.userinfo image {
	width: 50upx;
	height: 50upx;
	border-radius: 50%;
}
.userinfo text {
	padding-left: 20upx;
}
.userinfo {
	padding-top: 20upx;
}
</style>
